|
|
 |
|
|
|
|
2. Add the BasicPersonalChecking class to your project. Choose File|Save As from the menu to rename the actual filename of the class to AbstractCheckingProduct. |
|
|
|
 |
|
|
|
|
3. Cut and paste the code of each AbstractCheckingProduct method into the interface methods in the NewBasicPersonalChecking class. |
|
|
|
 |
|
|
|
|
4. Save the project as AbstractInterface. Remove the NewBasicPersonalChecking class from the project so that you can use it later in a separate sample project. |
|
|
|
 |
|
|
|
|
5. Using the guidelines from Day 6, create the AbstractInterface DLL. |
|
|
|
 |
|
|
|
|
6. Open a new Standard EXE project. |
|
|
|
 |
|
|
|
|
7. Add the NewBasicPersonalChecking class to the new project. |
|
|
|
 |
|
|
|
|
8. Choose Project References from the menu to add the AbstractInterface.DLL file to your project. |
|
|
|
 |
|
|
|
|
9. In the NewBasicPersonalChecking class's General Declarations section, enter Implements AbstractInterface.AbstractCheckingProduct. |
|
|
|
 |
|
|
|
|
10. In the NewBasicPersonalChecking class's object list, look for the AbstractCheckingProduct interface object. If you're able to see it, then you've successfully created an abstract component. Move the code from the class methods to the interface methods of the AbstractCheckingProduct interface object. |
|
|
|
|
|
|
|
|
2. Using the list of subsystems for the Samsona Bank Teller System, create additional subsystems that you might find helpful for your own bank. Use Visual Modeler or a pencil and paper to create a class diagram and component diagram. |
|
|
|
|
|
|
|
|
3. Create a simple order entry application in Visual Basic for a hypothetical video rental store using a subsystem named OrderEntryCapture. Add a form named frmOrderEntry. Add a class named VideoRental, which represents an order. Add a class called FormController to control the interactions between the form and the VideoRental order class. The use case for such an application is as follows: |
|
|
|
 |
|
|
|
|
A customer presents a video to the cashier along with a rental identification card. The cashier enters the customer's ID from the card, the name and ID of the video, and the amount of the video. (Assume that the customer is not a new customer.) The cashier submits the rental order for processing. The application verifies that the customer exists, that the customer has no delinquent rentals, and that the credit card associated with the ID on the rental card is current. If this information is acceptable, the order is approved and the customer is allowed to rent the video. |
|
|
|
|
|